package top.healthylife.gateway.dto.cons;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum DataPeriod {

    /**
     * 数据时效性
     */
    T1("T+1", 24 * 60 * 60L),
    T2("T+2",2*24*60*60L),
    T3("T+3",3*24*60*60L),
    T7("T+7",7*24*60*60L),
    DEFAULT("T+1",24 * 60 * 60L),
    REAL_TIME("实时",-1L);

    /**
     * 描述
     */
    private final String desc;
    /**
     * 时效性 单位:秒
     */
    private final Long periodValidity;
}
